<?php
	require_once(HEADER_FILE);
	$registration = new registration();
?>
	<link href="<?php echo CSS_HTTP_PATH; ?>common.css" type="text/css" rel="stylesheet">
	<form name="registration" action="registered">
		<?php
			if($registration->isCVUploaded())
			{
				$all_emails = $registration->getAllEmils();
				if(count($all_emails) > 0 )
				{
					echo '<div class="all_mails">';
						if(count($all_emails) > 1 )
						{
							echo '<div class="notice" id="notice">'.MULTIPLE_ANNOTATION.'<img src="public/images/close.png" id="close_div" /></div>';
							foreach ($all_emails as $email)
							{
								echo '<div class="wrap_content">';
									echo '<span class="radio_btn"><input type = "radio" name="email" value="' . $email . '" data-radiovalue="'.$email.'" /></span>';
									echo '<span class="radio_name">' . $email . '</span>';
								echo '</div>';
							}
						}
					echo '</div>';
				}
				else
				{
					
				}
			}
		?>
		<div>
			<span class="main_email">Email: </span>
			<span class="main_email_value"><input type="text" name="email" value="<?php if($all_emails) {echo $all_emails[0];} ?>" id="email_textbox"></span>
		</div>
	</form>
<?php require_once(FOOTER_FILE); ?>
